<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p3_css常用值</title>
    <style>
        h1 {
            /*color: red;*/
            /*color: rgb(255,0,0);*/
            /*color: rgb(0,255,0);*/
            color: rgb(0, 0, 255);
        }

        .div1 {
            width: 50px;
            height: 50px;
            background-image: url("img/mr.png");
            background-size: 50px 100px;
            background-color: cyan;
        }

        .div2 {
            width: 500px;
            height: 300px;
            border: 5px solid black;
            background-image: url("img/mr.png");
            background-size: 50px 104px;
            background-color: cyan;
            background-repeat: no-repeat;
            /*background-position: 225px 98px;*/
            background-position: center center;
        }
        .div3{
            width: 500px;
            height: 300px;
            background-image: linear-gradient(45deg,green,blue);
        }
    </style>
</head>
<body>
<h1>颜色测试</h1>
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
</body>
</html>